package com.rfid.entityMapper;

import com.entitymapper.field.FieldMapperToRead;
import com.entitymapper.field.ResultSet;
import com.teatrace.model.TraceInfo;

/**
 * 读实体对象操作
 * @author hhf
 */
public class TraceInfoFieldMapperToRead implements FieldMapperToRead{

	/**
	 * 读实体对象操作
	 * @param ResultSet
	 */
	@Override
	public TraceInfo mappering(ResultSet rs){
		TraceInfo info = new TraceInfo();
		info.setNumber(rs.getString("number"));
		info.setAddress(rs.getString("address"));
		info.setRecordTime(rs.getDate("recordTime"));
		info.setDescription(rs.getString("description"));
		return info;
	}

}
